import request from '@/utils/request'

// 查询案例要素内容列表
export function listItemcontent(query) {
  return request({
    url: '/casemgr/itemcontent/list',
    method: 'get',
    params: query
  })
}

// 查询案例要素内容详细
export function getItemcontent(casitemcontentid) {
  return request({
    url: '/casemgr/itemcontent/' + casitemcontentid,
    method: 'get'
  })
}

// 新增案例要素内容
export function addItemcontent(data) {
  return request({
    url: '/casemgr/itemcontent',
    method: 'post',
    data: data
  })
}

// 修改案例要素内容
export function updateItemcontent(data) {
  return request({
    url: '/casemgr/itemcontent',
    method: 'put',
    data: data
  })
}

// 删除案例要素内容
export function delItemcontent(casitemcontentid) {
  return request({
    url: '/casemgr/itemcontent/' + casitemcontentid,
    method: 'delete'
  })
}
